﻿using JustWPFControls.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Media;

namespace JustWPFControls.Converters
{
    public static class JIconConverter
    {
        private static Uri _iconUri;
        private static ResourceDictionary _iconResourceDic;
        static JIconConverter()
        {
            _iconUri = new Uri("pack://application:,,,/JustWPFControls;component/Resources/Geometries.xaml");
            _iconResourceDic = new ResourceDictionary() { Source = _iconUri };
        }
        public static Geometry? GetIcon(IconType iconType)
        {
            return _iconResourceDic[iconType.ToString()] as Geometry;
        }
    }
}
